<?php
/**
 * @package    Joomla! Indescon Membership
 * @subpackage components
 * components/com_members/models/membersphp
 * @link http://www.indescon.org
 * @license    GNU/GPL
*/

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.model' );

/**
 * Hello Model
 *
 * @package    Joomla! Indescon Members
 * @subpackage Components
 */
class MembersModelMembers extends JModel
{
    /**
        * Gets the greeting
        * @return string The greeting to be displayed to the user
        */
    function get_members() 
    {
        $db     =& JFactory::getDBO();
        $sql    = "SELECT id, params FROM jos_forme_data WHERE form_id=7 ORDER BY params";
        $db->setQuery($sql);

//         $result = $db->query();
        $members   = $db->loadobjectlist();

        return $members;
    }
}
